package com.woniuxy.products.controller;

import com.woniuxy.commons.entity.Enablestatus;
import com.woniuxy.products.service.EnablestatusService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author author
 * @create 2021-11-16 18:20
 */
@RestController
@RequestMapping("/products")
public class EnablestatusController {
    @Resource
    private EnablestatusService enablestatusService;

    @GetMapping("/all")
    public List<Enablestatus> selectAll(){
        return enablestatusService.getAllByService();
    }
}
